<extend name="Public/base"/>
<block name="head">
	<link href="__CSS__/goods.css" rel="stylesheet" />
</block>
<block name="body">
	
    <div class="container">
        <!-- 面包屑 -->
        <ol class="breadcrumb">
		  <li><a href="{:U('Index/index')}">{:C('WEB_SITE_TITLE')}</a></li>
		  <li> <a href="{:U('Goods/cate',array('id'=>$goods['cate_id']))}">{$goods['cate_id']|get_goods_category_name}</a></li>
		  <li class="active">{$goods['name']}</li>
		</ol>
       
        <!--items start-->
        <div class="row">
	        <div class="col-md-9">
	            <div class="col-md-12 ">
	                <div class="col-md-5">
	                    <a class="show_big buy" title="{$goods['name']}">
	                        
	                        <img alt="{$goods['seo_title']}" src="{$goods['pic_url']}" height="310" width="310">
	                    </a>
	                </div>
	                <div class="price-info pr col-md-7">
	                    <h3 class="title">{$goods['name']}</h3>
	                    <p class="body_price clear">
	                        <span class="price_f fl buy">
	                            <em class="price-ico">￥</em>
	                            <em class="price">{$goods['price']}</em>
	                           <em><del>（原价：{$goods['market_price']}）</del></em>
	                            <em><php>echo sprintf( "%.2f",$goods['price']/$goods['market_price'])*10;</php>折</em>
	                        </span>
	                    </p>
	                    <p class="btn" style="display:block">
	                    <a class="y-like my-like mt5 fl item-like-btn" href="javascript:;" onclick="favor({$goods['id']})">
	                            <em class="icon icon-k"></em>收藏</a> 
	                           	
	                    </p>
	                    <p class="btn">
	                    	<notempty name="goods.click_url">
	                    		
	                       		 <a class="go_btn buy fl" href="{$goods['click_url']}" target="_blank">
	                            <span>去购买&gt;&gt;</span>
	                        </a>
	                        <else/>
	                        	<a class="go_btn buy fl" href="{:U('Goods/goBuy',array('id'=>$goods['num_iid']))}" target="_blank">
	                            <span>去购买&gt;&gt;</span>
	                        </a>
	                    	</notempty>
	                       	<span style="font-size:18px;height:48px;line-height:48px;">月销:{$goods['volume']}</span>
	                    </p>
	                </div>
	            </div>
	           
	            <div class="bady-part col-md-12" style="margin-top: 20px;">
	                <div class="bady-tab bady_bg clear" id="bady-tab">
	                    <ul class="nav nav-tabs">
	                        <li class="active" role="presentation"><a href="javascript:;">商品详情</a>
	                        </li>
	                    </ul>
	                    
	                </div>
	
	                <div class="con">
	                    <div style="padding-top:20px;" class="information">
	                        
	                        <div class="bady_info">
	                                
	                            <div class="info_s1 clear" id='gdetial'>
	                                <if condition="$goods['item_body']">
	                                    {$goods['item_body']}
	                                <else/>
	                              
	                                 <script>
											var url = "<php>echo $goods['item_url']</php>";
											$.get('{:U("Goods/ajGetGoodsDetial")}',{url:url},function(data){
												if(data.status){
													$("#gdetial").html(data.content);
												}else{
													location.href="{:U('Goods/goBuy',array('id'=>$goods['num_iid']))}";
													updateAlert('即将为您跳转爱淘宝');
													setTimeout(function(){
														$('#top-alert').find('button').click();
								                       location.onload();
								                    },1500);
												}
												
												
											});
	                                </script>
	                                    商品详情加载中，请稍等...
	                                </if>
	                            </div>
	                        </div>
	                    </div>
	
	                </div>
	            </div>
	        </div>
	        <div class=" col-md-3">
	            <div class="hot_goods">
	                <h3>
	                    <div class="line"></div>
	                    <div class="line-txt">HOT同类热卖</div>
	                </h3>
	                <ul>
	                    <volist name="hot_goods" id="v">
	                    <li>
	                        <a target="_blank" href="{:U('/goods/'.$v['id'])}">
	                            <img class="lazy img-responsive" src="{$v.pic_url}" alt="{$v.name}">
	                            <h5>{$v.name}</h5>
	                            <div class="hot_price">
	                                <em class="hot_yang">￥</em>
	                                <em class="hot_num">{$v.price}</em>
	                            </div>
	                        </a>
	                    </li>
	                    </volist>
	                </ul>
	            </div>
	        </div>
    </div>
</div>
    <!-- /主体 -->
  
  

</block>

